package com.jingshui.Dao.imp;

import com.jingshui.Dao.OrderDao;
import com.jingshui.Entity.Order;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;
import orm.base.Ex.BaseDaoEx;

import java.util.List;
import java.util.Map;

/**
 * Created by ashin on 2017/9/29.
 */

@Repository
@Scope("prototype")
public class OrderDaoImp extends BaseDaoEx implements OrderDao {
    @Override
    protected void init() {
        super.init(this);
    }

    @Override
    public List<Map> queryOrderInfo(Map map) throws Exception {
        return this.query("queryOrderInfo",map);
    }

    @Override
    public List<Order> queryAdmin(Map map) throws Exception {
        return this.query("queryAdmin",map);
    }
}
